<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewpor" content="width=deice-width,initial-scale=1.0">
    <title></title>
    <script src="main.js"></script>
</head>

<body>
    <header>
        <h1>js的三种用法</h1>
    </header>
    <main>
        <ol>
            <li>外部引用</li>
            <li>内部脚本</li>
            <li onclick="alert('这是来自内部脚本的信息');">内嵌脚本</li>
        </ol>
    </main>
    <footer></footer>
    <script>
        alert('这是来自内部脚本的信息');
    </script>
</body>

</html>